package com.miao.hong.fang.teacher.dao;

import java.util.List;

import com.miao.hong.fang.admin.BackupFileTO;
import com.miao.hong.fang.teacher.TeacherTO;
import com.miao.hong.fang.util.pagination.ListAndCount;

public interface TeacherDAO {

	List getTeacherByCategory(String category);

	boolean validateTeacherName(String name);
	
	String addTeacher(TeacherTO teacherTO);
	
	void saveTeacherImageToDB(BackupFileTO to);
	
	ListAndCount searchTeacher(String teacherName, String teacherDesc, String teachMajor);
	
	void deleteTeacher(String teacherId, String version);
	
	TeacherTO getTeacherDetail(String teacherId);
	
	void updateTeacher(TeacherTO teacherTO);
	
	ListAndCount getCoursesByTeacher(String teacherId);
	
	int updateTeacherMajor(String oldValue, String newValue);
	
	ListAndCount getAllTeacher(String category);
	
	BackupFileTO getBackUpFile(String id);
	void deleteBackupFile(String id);
	List getAllImages();
	byte[] getImage(String id);
}
